const host = 'http://39.104.143.104:8080';
const ws = 'ws://39.104.143.104:8080';
// const host = 'http://localhost:8080';
// const host = '/api';
module.exports = {
    host:host,
    wsUrl: ws,
    name:'华电湖北应急系统',
    footerText: 'Emergency plan © 2022',
    logo: './logos.png',
    iconFontCSS: '/iconfont.css',
    iconFontJS: '/iconfont.js',
    CORS: [host],
    openPages: ['/login'],
    api: {
        //用户管理
        user: {
            login: `${host}/login`,
            loginout: `${host}/exit`,
            getAuthCode: `${host}/getLoginCode?uuid=`,
            getuseridAccount:`${host}/permissions`,
            getuserid:`${host}/getUserId`,
            userLeave: `${host}/user/leave`,
        },
        //通讯录
        Maillist:{
            getMaillist:`${host}/addressbook`,
            getMaillist_tow:`${host}/addressbook_ext`,
            postMaillist:`${host}/addressbook_s`,
            postMaillist_tow:`${host}/addressbook_ext`,
            getBMZZ:`${host}/addressbook/organization`,
            deleteMaillist:`${host}/addressbook`,
            putMaillist:`${host}/addressbook`,
            putMaillist_tow:`${host}/addressbook_ext`,
            getAllRoleOne:`${host}/addressBookSelect`,
            getAllRoleTow:`${host}/roleSelect`,
            postOrganRole:`${host}/role`,
        },
        //组织结构
        Organ:{
            getOrgan:`${host}/organization`,
            postOrgan:`${host}/organization`,
            deleteOrgan:`${host}/organization`,
            getTXL:`${host}/organization/user/list`,
            getTXLOUT:`${host}/organization/userList`,
            postTXL:`${host}/organization/user`,
            deleteTXL:`${host}/organization/user`,
        },
        //日历控件
        duty:{
            getDutyMM:`${host}/beOnDuty`,
            getDutyYY:`${host}/beOnDuty`,
            getDutyTXL:`${host}/beOnDuty/user`,
            getDutyList:`${host}/beOnDuty`,
            postDuty:`${host}/beOnDuty`,
            getGZT:`${host}/selectBeOnDutyListToUser`,
            // getGZL:`${host}/runtime/tasks`,
            getGZL:`${host}/taskList`,
        },
        //巡检点
        chack:{
            getCheck:`${host}/check/point`,
            postCheck:`${host}/check/point`,
            deleteChack:`${host}/check/point`,
            putCheck:`${host}/check/point`,
        },
        //巡检路线
        point:{
            getPoint:`${host}/check/route`,
            postPoint:`${host}/check/route`,
            putPoint:`${host}/check/route`,
            deletePoint:`${host}/check/route`,
        },
        //巡检计划
        pointplan:{
            getPointplan:`${host}/check/plan`,
            postPointplan:`${host}/check/plan`,
            putPointplan:`${host}/check/plan`,
            deletePointplan:`${host}/check/plan`,
        },
        //检查项目
        Inspectionproject:{
            getInspep:`${host}/checkitem`,
            getInspepList:`${host}/checkitem/detail`,
            postInspep:`${host}/checkitem`,
            putInspep:`${host}/checkitem`,
            deleteInspep:`${host}/checkitem`,
            postList:`${host}/checkitem/detail`,
            getpointgo:`${host}/point/checkitem`,
        },
        //检查项目目录
        Inspection:{
            getIns:`${host}/checkcatalog`,
            postIns:`${host}/checkcatalog`,
            putIns:`${host}/checkcatalog`,
            deleteIns:`${host}/checkcatalog`,
        },
        //统计
        tongji:{
            plan:`${host}/check/planTotal`,
            roald:`${host}/check/pointTotal`,
        },
        //演练计划
        Rehearsal:{
            getRehearsal:`${host}/plan/rehearse`,
            getYLBM:`${host}/plan/department`,
            postRehearsal:`${host}/plan/rehearse`,
            deleteRehearsal:`${host}/plan/rehearse`,
            putRehearsal:`${host}/plan/rehearse`,
        },
        //预案学习================>修改成演练资料管理
        Learnplan:{
            getLearnplan:`${host}/plan/preData`,
            postLearnplan:`${host}/plan/preData`,
            deleteLearnplan:`${host}/plan/preData`,
            putLearnplan:`${host}/plan/preData`,
            getLearnplanList:`${host}/plan/DataDetails`,
        },
        //系统账户
        account:{
            getAccount:`${host}/account`,
            postAccount:`${host}/account`,
            putAccount:`${host}/account`,
        },
        //应急基本物资
        material:{
            getMaterial:`${host}/material`,
            postEmerg:`${host}/material`,
            getEmergList:`${host}/material/detail`,
            postEmergList:`${host}/material/standard`,
            listDelete:`${host}/material/standard`,
            getMaterialrecord:`${host}/material/record`,
        },
        //应急地址
        placeStorage:{
            getStorage:`${host}/material/address`,
            postStorage:`${host}/material/address`,
        },
        //应急物资
        Allemerg:{
            getAllemerg:`${host}/material/details`,
            getADDaddress:`${host}/material/address/select`,
            getADDmaterial:`${host}/material/select`,
            postAllemerg:`${host}/material/details`,
            getAllemergList:`${host}/material/details/detail`,
            getAllemergListTow:`${host}/material/details/record`,
            getProduction :`${host}/check/record`,
            getProductionList:`${host}/check/exportDetails`,
        },
        //应急预案
        Emplan:{
            getEmplan:`${host}/pre`,
            postEmplan:`${host}/pre`,
            putEmplan:`${host}/pre`,
            deleteEmplan:`${host}/pre`,
            getEmplanList:`${host}/pre/Details`,
            deleteEmplanList:`${host}/pre/position`,
            postEmplanList:`${host}/pre/position`,
            putEmplanList:`${host}/pre/position`,
            postEmplanList_Tow:`${host}/warn`,
            deleteEmplanList_Tow:`${host}/warn`,
            putEmplanList_Tow:`${host}/warn`,
            postEmplanList_Third:`${host}/warn/startup`,
            deleteEmplanList_Third:`${host}/warn/startup`,
            putEmplanList_Third:`${host}/warn/startup`,
        },
        //应急法规学习
        statutestudy:{
            getStudy:`${host}/statutestudy`,
            postStudy:`${host}/statutestudy`,
            putStudy:`${host}/statutestudy`,
            deleteStudy:`${host}/statutestudy`,
        },
        //安全隐患
        Manage:{
            getManage:`${host}/trouble`,
            postManage:`${host}/trouble`,
            putManage:`${host}/trouble`,
            deleteManage:`${host}/trouble`,
        },
        //演练题目
        Category:{
            getCategory:`${host}/drill/title`,
            postCategory:`${host}/drill/title`,
            getCategoryList:`${host}/drill/catalog`,
            postCategoryListUp:`${host}/drill/catalog`,
            deleteCategoryListUp:`${host}/drill/catalog`,
            getCategoryDown:`${host}/drill/example`,
            postCategoryDown:`${host}/drill/example`,
            deleteCategoryDown:`${host}/drill/example`,
            putCategoryDown:`${host}/drill/example`,
        },
        //应急疏散场所
        Evacuate:{
            getEvacuate:`${host}/evacuation`,
            postEvacuate:`${host}/evacuation`,
            deleteEvacuate:`${host}/evacuation`,
            putEvacuate:`${host}/evacuation`,
        },
        //工作流
        working:{
            postSetWorking:`${host}/process`,
            postWorkingEmp:`${host}/runtime/process-instances`,
            dashboardList:`${host}/workFlow/details`,
            //上旧下新
            // getworking :`${host}/taskList`,
            getworking :`${host}/history/historic-process-instances`,
            // getworkingList:`${host}/workFlow/details`,
            getworkingList:`${host}/history/historic-activity-instances`,
            getTaskData:`${host}/form/form-data`,
            postTaskData:`${host}/runtime/tasks`,
        },
        //下发通知
        privilege:{
            getprivilege:`${host}/notice/all`,
            postprivilege:`${host}/notice/all`,
            getPrivilegeTow:`${host}/notice/history-message`,
            postPrivilegeTow:`${host}/notice/announce`,
            getprivilegeList:`${host}/notice/history-message`,
        },
        // 考试
        task: {
            exam: `${host}/task`,
        },
    },
};
